﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Business.aspx.cs" Inherits="Business_Business" MasterPageFile="../MasterPage.master" %>

<%@ Import Namespace="Common" %>
<%@ Import Namespace="DAL" %>
<%@ Register Src="../common/Pager.ascx" TagName="Pager" TagPrefix="uc2" %>
<%@ Register Src="User_Left.ascx" TagName="User_Left" TagPrefix="uc1" %>
<asp:Content ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table cellpadding="0" cellspacing="2" width="100%" border="0">
        <tr>
            <td class="leftTd" valign="top" width="20%">
                <uc1:User_Left ID="User_Left1" runat="server" />
            </td>
            <td width="80%" valign="top">
                <table cellpadding="0" cellspacing="0" width="100%" border="0" align="center">
                    <tr>
                        <td class="leftTd" valign="top">
                            <table cellpadding="0" cellspacing="0" width="100%" border="0" align="center">
                                <tr>
                                    <td class="titleStyle">
                                        <%= WebUtility.GetTitleByMenu(MenuType) %>
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <table width="98%" border="0" cellpadding="0" cellspacing="1" align="center" bgcolor="#000066">
                                <tr>
                                    <td style="height: 30px;" colspan="11" class="banma22_1">
                                        &nbsp;任务类型：
                                        <asp:DropDownList ID="ClsID" runat="server">
                                            <asp:ListItem Value="">- 请选择任务类型 - </asp:ListItem>
                                        </asp:DropDownList>
                                        &nbsp; 预约/任务状态：
                                        <asp:DropDownList ID="txt_Type" runat="server">
                                            <asp:ListItem Value="">- 请选择预约/任务类型-</asp:ListItem>
                                            <asp:ListItem Value="1">┣&nbsp;任务已提交</asp:ListItem>
                                            <asp:ListItem Value="2">┣&nbsp;任务已分配</asp:ListItem>
                                            <asp:ListItem Value="3">┣&nbsp;技术员途中</asp:ListItem>
                                            <asp:ListItem Value="4">┣&nbsp;任务处理中</asp:ListItem>
                                            <asp:ListItem Value="5">┣&nbsp;任务未完成</asp:ListItem>
                                            <asp:ListItem Value="6">┣&nbsp;任务已完成</asp:ListItem>
                                        </asp:DropDownList>
                                        &nbsp;标题关键字：<asp:TextBox ID="Keyword" runat="server" Width="60px" CssClass="face"></asp:TextBox>&nbsp;&nbsp;
                                        <asp:TextBox ID="OneDate" runat="server" Width="70px" CssClass="face" Text="选择开始日期"></asp:TextBox>
                                        &nbsp;&nbsp;<asp:TextBox ID="TwoDate" runat="server" Width="70px" CssClass="face" Text="选择结束日期"></asp:TextBox>&nbsp;&nbsp;
                                        <asp:Button ID="submit" runat="server" Text=" 搜 索 " CssClass="button" OnClick="submit_Click" />
                                    </td>
                                </tr>
                                <asp:Repeater ID="Re_News" runat="server" OnItemCommand="Re_News_ItemCommand">
                                    <HeaderTemplate>
                                        <tr>
                                            <td style="height: 30px; width: 5%;" class="banma1 TextCenters">
                                                序号
                                            </td>
                                            <td style="height: 30px; width: 8%;" class="banma1 TextCenters">
                                                客户名称
                                            </td>
                                            <td style="height: 30px; width: 8%;" class="banma1 TextCenters">
                                                服务类型
                                            </td>
                                            <td style="width: 15%;" class="banma1 TextCenters">
                                                预约描述
                                            </td>
                                            <td style="width: 8%;" class="banma1 TextCenters">
                                                预约状态
                                            </td>
                                            <td style="width: 5%;" class="banma1 TextCenters">
                                                服务工程师
                                            </td>
                                            <td style="width: 11%;" class="banma1 TextCenters">
                                                处理时间
                                            </td>
                                            <td style="width: 8%;" class="banma1 TextCenters">
                                                完成时间
                                            </td>
                                            <td style="width: 8%;" class="banma1 TextCenters">
                                                评价内容
                                            </td>
                                            <td style="width: 5%;" class="banma1 TextCenters">
                                                状态
                                            </td>
                                            <td style="width: 6%;" class="banma1 TextCenters">
                                                操作
                                            </td>
                                        </tr>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <tr>
                                            <td class="banma22_2" style="height: 25px; text-align: center;">
                                                <a class="thickbox" href="../Business/Business_View.aspx?NewsKey=<%# Eval("NewsKey") %>&KeepThis=true&TB_iframe=true&height=550&width=650">
                                                    <%# Eval("DanNum")%></a>
                                            </td>
                                            <td class="banma22_2" style="height: 25px; text-align: center;">
                                                <a class="thickbox" href="../System/User_View.aspx?UserKey=<%# Eval("UserID") %>&KeepThis=true&TB_iframe=true&height=550&width=650">
                                                    <%# Eval("UserName").ToString() %>
                                                    (<%# new Account().GetAccountShortCompanyName(Convert.ToInt32(Eval("UserID"))) %>) </a>
                                            </td>
                                            <td class="banma22_2" style="height: 25px; text-align: center;">
                                                <%# Eval("ClsName")%>
                                            </td>
                                            <td class="banma22_2" style="height: 25px; text-align: left;">
                                                <a class="thickbox" href="../Business/Business_View.aspx?NewsKey=<%# Eval("NewsKey") %>&KeepThis=true&TB_iframe=true&height=550&width=650">
                                                    <%# WebUtility.GetStringByLen(Eval("Content_Cus").ToString(), 20)%></a>
                                            </td>
                                            <td class="banma22_2" style="height: 25px; text-align: center;">
                                                <%# Eval("TypeName")%>
                                            </td>
                                            <td class="banma22_2" style="height: 25px; text-align: center;">
                                                <%# Eval("MRealName")%>
                                            </td>
                                            <td class="banma22_2" style="height: 25px; text-align: center;">
                                                <%# WebUtility.DateTimeToShort(Eval("TechFiveTime")) %><br>
                                                <%# WebUtility.DateTimeToShort(Eval("TechSixTime")) %>
                                            </td>
                                            <td class="banma22_2" style="height: 25px; text-align: center;">
                                                <%# WebUtility.DateTimeToShort(Eval("FinishTime")) %>
                                            </td>
                                            <td class="banma22_2" style="height: 25px; text-align: center;">
                                                <%# Eval("Content_Cus_Ping")%>
                                            </td>
                                            <td class="banma22_2" style="height: 25px; text-align: center;">
                                                <% if (MenuType == "211")
                                                   { %>
                                                <%# Convert.ToInt32(Eval("Content_Cus_PingNum")) > 0 ? Eval("Content_Cus_PingNum") : "未评价"%><% } %>
                                                <% if (MenuType == "212")
                                                   { %>
                                                <%# Convert.ToInt32(Eval("Content_Cus_RecallNum")) > 0 ? "已回访" : "未回访"%><% } %>
                                            </td>
                                            <td class="banma22_2" style="height: 25px; text-align: center;">
                                                <a style="display: <%= Account.ShowForUserTypeList("211",MenuType)%>" class="thickbox" href="../User/Business_Ping.aspx?NewsKey=<%# Eval("NewsKey") %>&KeepThis=true&TB_iframe=true&height=550&width=650">评价服务</a> <a style="display: <%= Account.ShowForUserTypeList("212",MenuType)%>" class="thickbox" href="../User/Business_Recall.aspx?NewsKey=<%# Eval("NewsKey") %>&KeepThis=true&TB_iframe=true&height=550&width=650">客户回访</a>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                    <AlternatingItemTemplate>
                                        <tr>
                                            <td class="banma22_1" style="height: 25px; text-align: center;">
                                                <a class="thickbox" href="../Business/Business_View.aspx?NewsKey=<%# Eval("NewsKey") %>&KeepThis=true&TB_iframe=true&height=550&width=650">
                                                    <%# Eval("DanNum")%></a>
                                            </td>
                                            <td class="banma22_1" style="height: 25px; text-align: center;">
                                                <a class="thickbox" href="../System/User_View.aspx?UserKey=<%# Eval("UserID") %>&KeepThis=true&TB_iframe=true&height=550&width=650">
                                                    <%# Eval("UserName").ToString() %>
                                                    (<%# new Account().GetAccountShortCompanyName(Convert.ToInt32(Eval("UserID"))) %>) </a>
                                            </td>
                                            <td class="banma22_1" style="height: 25px; text-align: center;">
                                                <%# Eval("ClsName")%>
                                            </td>
                                            <td class="banma22_1" style="height: 25px; text-align: left;">
                                                <a class="thickbox" href="../Business/Business_View.aspx?NewsKey=<%# Eval("NewsKey") %>&KeepThis=true&TB_iframe=true&height=550&width=650">
                                                    <%# WebUtility.GetStringByLen(Eval("Content_Cus").ToString(), 20)%></a>
                                            </td>
                                            <td class="banma22_1" style="height: 25px; text-align: center;">
                                                <%# Eval("TypeName")%>
                                            </td>
                                            <td class="banma22_1" style="height: 25px; text-align: center;">
                                                <%# Eval("MRealName")%>
                                            </td>
                                            <td class="banma22_1" style="height: 25px; text-align: center;">
                                                <%# WebUtility.DateTimeToShort(Eval("TechFiveTime"))%><br>
                                                <%# WebUtility.DateTimeToShort(Eval("TechSixTime"))%>
                                            </td>
                                            <td class="banma22_1" style="height: 25px; text-align: center;">
                                                <%# WebUtility.DateTimeToShort(Eval("FinishTime")) %>
                                            </td>
                                            <td class="banma22_2" style="height: 25px; text-align: center;">
                                                <%# Eval("Content_Cus_Ping")%>
                                            </td>
                                            <td class="banma22_2" style="height: 25px; text-align: center;">
                                                <% if (MenuType == "211")
                                                   { %>
                                                <%# Convert.ToInt32(Eval("Content_Cus_PingNum")) > 0 ? Eval("Content_Cus_PingNum") : "未评价"%><% } %>
                                                <% if (MenuType == "212")
                                                   { %>
                                                <%# Convert.ToInt32(Eval("Content_Cus_RecallNum")) > 0 ? "已回访" : "未回访"%><% } %>
                                            </td>
                                            <td class="banma22_1" style="height: 25px; text-align: center;">
                                                <a style="display: <%= Account.ShowForUserTypeList("211",MenuType)%>" class="thickbox" href="../User/Business_Ping.aspx?NewsKey=<%# Eval("NewsKey") %>&KeepThis=true&TB_iframe=true&height=550&width=650">评价服务</a> <a style="display: <%= Account.ShowForUserTypeList("212",MenuType)%>" href="../User/Business_Recall.aspx?NewsKey=<%# Eval("NewsKey") %>&KeepThis=true&TB_iframe=true&height=550&width=650">客户回访</a>
                                            </td>
                                        </tr>
                                    </AlternatingItemTemplate>
                                </asp:Repeater>
                            </table>
                            <uc2:Pager ID="Pager1" runat="server" />
                        </td>
                    </tr>
                </table>
</asp:Content>
